package yinhang;

public class User {
	private static int autoId = 10000;
	private int cardId;
	private String name;
	private double money;
	
	public int getCardId() {
		return cardId;
	}
	public void setCardId(int cardId) {
		this.cardId = cardId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public double getMoney() {
		return money;
	}
	public void setMoney(double money) {
		this.money = money;
	}
	public User() {
		super();
		this.cardId = ++autoId;
	}
	public User(int cardId, String name, double money) {
		super();
		this.cardId = cardId;
		this.name = name;
		this.money = money;
	}
	
	public User(String name, double money) {
		super();
		this.cardId = ++autoId;
		this.name = name;
		this.money = money;
	}
}

